﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace Dune2013
{
    public class Text
    {
        public SpriteFont font;
        public string text;
        public Vector2 position;
        public Color color;

        public Text(SpriteFont font, string text, Vector2 position, Color color) {
            this.font = font;
            this.text = text;
            this.position = position;
            this.color = color;
        }

        public virtual void Draw(SpriteBatch spriteBatch) {
            if (font != null && color != null)
                spriteBatch.DrawString(font, text, position, color);
        }
    }
}
